package com.demo2do.boyle.common.entity.task;

import com.demo2do.core.utils.Alias;

@Alias("taskStatus")
public enum TaskStatus {
	
	CLAIMED("已认领", "已认领", "info"),
	
	OVERDUE("已过期", "已过期", "primary"),
	
	DONE("待审核", "已上传截图", "danger"),
	
	FINISH("已分红", "已完成" ,"success"),
	
	UNPASS("未通过", "未通过" ,"danger");
	
	private String description;
	
	private String alias;
	
	private String css;
	
	private TaskStatus(String description, String alias, String css) {
		this.alias = alias;
		this.description = description;
		this.css = css;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @return the alias
	 */
	public String getAlias() {
		return alias;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @param alias the alias to set
	 */
	public void setAlias(String alias) {
		this.alias = alias;
	}
	
	public String getName() {
        return name();
    }

	/**
	 * @return the css
	 */
	public String getCss() {
		return css;
	}
	
	/*
     * (non-Javadoc)
     * @see java.lang.Enum#toString()
     */
    @Override
    public String toString() {
        return description;
    }
}
